Package com.serotonin.m2m2.jviews

Source Code of com.serotonin.m2m2.jviews.JspViewDwr

/*
    Copyright (C) 2014 Infinite Automation Systems Inc. All rights reserved.
    @author Matthew Lohbihler
*/
package com.serotonin.m2m2.jviews;

import org.directwebremoting.WebContextFactory;

import com.serotonin.m2m2.jviews.component.JspView;
import com.serotonin.m2m2.web.dwr.ModuleDwr;
import com.serotonin.m2m2.web.dwr.util.DwrPermission;

/**
* @author Matthew Lohbihler
*/
public class JspViewDwr extends ModuleDwr {
    @DwrPermission(anonymous = true)
    public void setJspViewPoint(int pollSessionId, String xid, String valueStr) {
        JspView view = JspViewsCommon.getJspView(WebContextFactory.get().getHttpServletRequest());
        setPointImpl(view.getPoint(xid), valueStr, view.getAuthorityUser());
        notifyLongPollImpl(getLongPollData(pollSessionId, false).getRequest());
    }
}
TOP

Related Classes of com.serotonin.m2m2.jviews.JspViewDwr

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.